package com.scy.java.thread.eatbuns;

public class TestProducerConsumer {
    public static void main(String[] args) {
        //创建包子对象
        BaoZi baoZi = new BaoZi();
        //创建包子铺线程，开始生产(生产者)线程
        new BaoZiShop(baoZi).start();
        //创建顾客线程开始吃包子(消费者)
        new CustomerClass(baoZi).start();
    }
}
